using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.WebControls;

public partial class admin_inBidFloors : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void grd_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e)
    {
        if (!e.IsFromDetailTable)
        {
            DataTable dt = new FloorBus().LoadInBidFloors();
            grd.DataSource = dt;
        }
    }

    protected void grd_DetailTableDataBind(object source, Telerik.WebControls.GridDetailTableDataBindEventArgs e)
    {
        GridDataItem parentItem = (GridDataItem)e.DetailTableView.ParentItem;
        switch (e.DetailTableView.Name)
        {
            case "FloorDetails":
                decimal proID = Convert.ToDecimal(parentItem.GetDataKeyValue("ProID"));
                DataTable dt = new FloorBus().LoadBidsDetails(proID);
                e.DetailTableView.DataSource = dt;
                break;
            default:
                break;
        }
    }
}
